<template>
	<view class="statistical-main">
		<view class="statistical five">
			<view class="lefts">
				<image v-for="(item,index) in nums" src="../../../static/image/start.png" mode=""></image>
			</view>
			<view class="right">
					<view class="line" v-if="nums == 1">
						<view class="line-act" :style="{width:frist+'%'}">
					
						</view>
					</view>
					<view class="line" v-if="nums == 2">
						<view class="line-act" :style="{width:second+'%'}">
					
						</view>
					</view>
					<view class="line" v-if="nums == 3">
						<view class="line-act" :style="{width:third+'%'}">
					
						</view>
					</view>
					<view class="line" v-if="nums == 4">
						<view class="line-act" :style="{width:fourth+'%'}">
					
						</view>
					</view>
					<view class="line" v-if="nums == 5">
						<view class="line-act" :style="{width:fifth+'%'}">
					
						</view>
					</view>
			</view>
			
		</view>
	</view>
</template>

<script>
	export default {
		name: "statistical",
		props: {
			nums: {
				type: Number,
				default: () => 0
			},
			frist: {
				type: Number,
				default: () => 0
			},
			second: {
				type: Number,
				default: () => 0
			},
			third: {
				type: Number,
				default: () => 0
			},
			fourth: {
				type: Number,
				default: () => 0
			},
			fifth: {
				type: Number,
				default: () => 0
			},
		},
		data() {
			return {

			}
		}
	}
</script>

<style lang="scss" scoped>
	.statistical-main {
		.statistical {
			display: flex;
			justify-content: space-between;
			align-items: center;
			height: 28rpx;

			.lefts {
				width: 110rpx;
				display: flex;
				flex-direction: row-reverse;

				image {
					width: 20rpx;
					height: 20rpx;
				}
			}
			.right{
				width: 390rpx;
			}
			.line {
				width: 390rpx;
				height: 8rpx;
				background: #EBEDF0;
				border-radius: 30rpx;

				.line-act {
					height: 100%;
					background-color: #4DBEC1;
					border-radius: 30rpx;
				}
			}
		}
	}
</style>
